<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>凡客-会员中心-我的订单</title>
		<link rel="stylesheet" type="text/css" href="{{__PUBLIC__}}/Home/org/bootstrap-3.3.5-dist/css/bootstrap.min.css" />
		<script src="{{__PUBLIC__}}/Home/js/jquery-1.7.2.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="{{__PUBLIC__}}/Home/org/bootstrap-3.3.5-dist/js/bootstrap.min.js" type="text/javascript" charset="utf-8"></script>

		<link rel="stylesheet" type="text/css" href="{{__PUBLIC__}}/Home/css/ziliao.css" />

		<!-- 城市联动 -->
		<script type="text/javascript" src="{{__PUBLIC__}}/Home/js/area.js"></script>
		<script type="text/javascript">
			$(function(){
				//初始化方法
				area.init('area');
				// 默认设置
				var addressone='';
				var addresstwo='';
				var addressthr='';
				{{if value="isset($userData) && isset($userData['address'])"}}
					{{if value="isset($userData['address'][0])"}}
					addressone="{{$userData['address'][0]}}";
					{{endif}}
					{{if value="isset($userData['address'][1])"}}
					addresstwo="{{$userData['address'][1]}}";
					{{endif}}
					{{if value="isset($userData['address'][2])"}}
					addressthr="{{$userData['address'][2]}}";
					{{endif}}
					area.selected(addressone,addresstwo,addressthr);
				
				{{endif}}
			})
		</script>

		<!-- 弹窗插件 -->
		<script src="{{__PUBLIC__}}/Home/js/qikoo.js" type="text/javascript" charset="utf-8"></script>
		<link rel="stylesheet" type="text/css" href="{{__PUBLIC__}}/Home/css/qikoo.css" />
	</head>

	<body>
		{{include file="VIEW_PATH/Common/header.php"}}
		<!--主体部分-->

		<div id="position">
			您当前的位置：<a href="{{U('Index/index')}}">凡客首页</a> > <a href="{{U('index')}}">我的凡客</a> > <a href="javascript:;">我的资料</a>
		</div>
		<div id="welcome">
			<div id="side-nav">
				<h2><a href="{{U('index')}}">我的凡客</a></h2>
				<ul>
					<li>
						<h3>订单中心</h3>
					</li>
					<li>
						<a href="{{U('dingdan')}}">·我的订单</a>
					</li>
					
				</ul>
				<ul>
					<li>
						<h3>客户服务</h3>
					</li>
					<li>
						<a href="{{U('tui')}}">·退换货办理</a>
					</li>
					
				</ul>
				<ul>
					<li>
						<h3>账户管理</h3>
					</li>
					<li>
						<a href="{{U('record')}}">·账户记录</a>
					</li>
					<li>
						<a href="{{U('address')}}">·收货地址</a>
					</li>
					<li>
						<a href="{{U('safe')}}">·修改密码</a>
					</li>
					<li class="index">
						<a href="javascript:;">·我的资料</a>
					</li>
					
				</ul>
			</div>
			<!-- 提交用户信息 -->
			<script type="text/javascript">
				$(function(){
					$('#userfrom').submit(function() {
						// 序列化
						var data = $('#userfrom').serialize();
						// 异步发送
						$.ajax({
							url: '{{U('ajaxUser')}}',
							type: 'POST',
							dataType: 'json',
							data: data,
							success:function(data){
								if(data.status){
									qikoo.dialog.alert(data.message);
								}
							}
						})
						return false;
					});
				})
			</script>
			
		<!--内容部分-->
		<!--右侧区域-->
		<form action="" method="post" id="userfrom">
			<div class="right">
				<div class="mngbox">
					<div class="main">
						<div class="content">
								<div class="title">
									<h5>我的资料</h5>
								</div>
								<ul class="edit-nav">
									<li><a class="yi_a" href="javascript:;">基本资料</a></li>
									<li><a class="er_a" href="javascript:;">详细资料</a></li>
									<li><a class="er_a" href="javascript:;">身材/偏好</a></li>
								</ul>
								<div class="change">
									<input type="radio" name="AvatarType" id="" value="" checked="checked" /> 选择头像
									<input type="radio" name="AvatarType" id="" value="" /> 上传头像
								</div>
								<!-- 获得头像js -->
								<script type="text/javascript">
									$(function(){
										$('.pic_list li').click(function() {
											// 单击效果
											$(this).addClass('index').siblings('li').removeClass('index');
											// 获得点击的图片地址
											var src = $(this).find('img').attr('src');
											// 赋值
											$('.finishnew .left .sit').attr('src', src);
											// 添加隐藏域
											$('.finishnew .left .hide').html('<input type="hidden" name="userpic" value="'+src+'" />');
										});
									})
								</script>
								<div class="cutpic">
									<div class="pic_list">
										<ul>
											<li>
												<img src="{{__PUBLIC__}}/Home/images/pic1.jpg" />
											</li>
											<li>
												<img src="{{__PUBLIC__}}/Home/images/pic2.jpg" />
											</li>
											<li>
												<img src="{{__PUBLIC__}}/Home/images/pic3.jpg" />
											</li>
											<li>
												<img src="{{__PUBLIC__}}/Home/images/pic4.jpg" />
											</li>
											<li>
												<img src="{{__PUBLIC__}}/Home/images/pic5.jpg" />
											</li>
											<li>
												<img src="{{__PUBLIC__}}/Home/images/pic6.jpg" />
											</li>
											<li>
												<img src="{{__PUBLIC__}}/Home/images/pic7.jpg" />
											</li>
											<li>
												<img src="{{__PUBLIC__}}/Home/images/pic8.jpg" />
											</li>
											<li>
												<img src="{{__PUBLIC__}}/Home/images/pic9.jpg" />
											</li>
											<li>
												<img src="{{__PUBLIC__}}/Home/images/pic10.jpg" />
											</li>
											<li>
												<img src="{{__PUBLIC__}}/Home/images/pic11.jpg" />
											</li>
											<li>
												<img src="{{__PUBLIC__}}/Home/images/pic12.jpg" />
											</li>
										</ul>
									</div>
									<div class="finishnew">
										<div class="left">
											<div class="hide"><input type="hidden" name="userpic" value="{{$userData['userpic']}}" /></div>
											{{if value="empty($userData['userpic'])"}}
											<img class="sit" src="{{__PUBLIC__}}/Home/images/vancl300.jpg" />
											{{else}}
											<img class="sit" src="{{$userData['userpic']}}" />
											{{endif}}
											<a href="javascript:;"><img src="{{__PUBLIC__}}/Home/images/savebtn.jpg" /></a>
										</div>
										<div class="right">
											<p>设置个性化头像<br />展现你的与众不同！</p>
										</div>
									</div>
								</div>
								<table cellspacing="" cellpadding="">
									<tr>
										<td class="label_1">用户名：<span>{{$_SESSION['hname']}}</span></td>
									</tr>
									<tr>
										<td class="label_1">为了您账户的安全，请 <span class="soer">验证手机</span>和<span class="soer">验证邮箱</span></td>
									</tr>
									<tr>
										<td class="label_2">
											<span style="color: #FF0000;">*</span>昵&nbsp;&nbsp;称：
										</td>
										<td class="label_3">
											<input type="text" name="nickname" class="bom" value="{{$userData['nickname']}}" />
										</td>
									</tr>
									<tr>
										<td class="label_2">
											<span style="color: #FF0000;">*</span>真实姓名：
										</td>
										<td class="label_3">
											<input type="text" name="truename" class="bom" value="{{$userData['truename']}}" />
										</td>
									</tr>
									<tr>
										<td class="label_2">
											<span style="color: #FF0000;">*</span>性&nbsp;&nbsp;别：
										</td>
										<td class="label_3">
											<input type="radio" name="sex"  value="男" {{if value="$userData['sex']=='男'" }} checked="checked" {{endif}} /> 男
											<input type="radio" name="sex"  value="女" {{if value="$userData['sex']=='女'" }} checked="checked" {{endif}} /> 女
										</td>
									</tr>
									<tr>
										<td class="label_2">
											<span style="color: #FF0000;">*</span>出生日期：
										</td>
										<td class="label_3">
											<select name="">
												<option value="">请选择</option>
											</select>
											<select name="">
												<option value="">请选择</option>
											</select>
											<select name="">
												<option value="">请选择</option>
											</select>
										</td>
									</tr>
									<tr>
										<td class="label_2">
											收信邮箱：
										</td>
										<td class="label_3">
											<input type="text" name="email" class="bom" value="{{$userData['email']}}" />
											<a class="qu" href="javascript:;"> 去验证>></a>
										</td>
									</tr>
									<tr>
										<td class="label_2">
											<span style="color: #FF0000;">*</span>地&nbsp;&nbsp;区：
										</td>
										<td class="label_3">
											<select name="address[]" id="area1">
												
											</select>
											<select name="address[]" id="area2">
												
											</select>
											<select name="address[]" id="area3">
												
											</select>
										</td>
									</tr>
									<tr>
										<td class="label_2">
											<span style="color: #FF0000;">*</span>详细地址：
										</td>
										<td class="label_3">
											{{if value="isset($userData['address'][3])"}}
											<input type="text" name="address[]" id="bom_s" value="{{$userData['address'][3]}}" />
											{{else}}
											<input type="text" name="address[]" id="bom_s" value="" />
											{{endif}}
										</td>
									</tr>
									<tr>
										<td class="label_2">
											邮政编码：
										</td>
										<td class="label_3">
											<input type="text" name="postcode" class="bom" value="{{$userData['postcode']}}" />
										</td>
									</tr>
									<tr>
										<td class="label_2">
											<span style="color: #FF0000;">*</span>手&nbsp;&nbsp;机：
										</td>
										<td class="label_3">
											<input type="text" name="phone" class="bom" value="{{$userData['phone']}}" />
											<a class="qu" href="javascript:;"> 去验证>></a>
										</td>
									</tr>
									<tr>
										<td class="label_2"></td>
										<td class="label_3">
											<input type="hidden" name="hid" value="{{$userData['hid']}}" />
											<input type="submit" name="" id="tijiao" value="" />
										</td>
									</tr>
								</table>
						</div>
					</div>
				</div>
			</div>
		</form>
			<!--右侧区域结束-->
			
		</div>
		{{include file="VIEW_PATH/Common/footer.php"}}

	</body>

</html>